//
//  GardenCell.m
//  项目 请帖
//
//  Created by dlios on 15-1-28.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "GardenCell.h"

@implementation GardenCell
- (void)dealloc
{
    [_view release];
    [_gardenView release];
    [_maxLabel release];
    [_minLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.gardenView = [[UIImageView alloc] init];
        //self.gardenView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.gardenView];
        [_gardenView release];
        
        self.view = [[UIView alloc] init];
        //self.view.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:self.view];
        [_view release];
        
        self.maxLabel = [[UILabel alloc] init];
        [self.view addSubview:self.maxLabel];
        [_maxLabel release];
        
        self.minLabel = [[UILabel alloc] init];
        [self.view addSubview:self.minLabel];
        self.minLabel.font = [UIFont systemFontOfSize:14];
        [_minLabel release];

    }
    
    
    return self;
    
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.gardenView.frame = CGRectMake(0, 10, self.contentView.frame.size.width, 190);
    
    self.view.frame = CGRectMake(0, 190, self.contentView.frame.size.width, 60);
    
    self.maxLabel.frame = CGRectMake(10, 10, 270, 30);
    self.minLabel.frame = CGRectMake(10, 40, 270, 20);
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
